
export type LoginResult = {
  success: boolean;
  data?: { access_token: string };
};

export type LoginParams = {
  username?: string;
  password?: string;
};

export type PageParams = {
  current?: number;
  pageSize?: number;
};

/**
 * User(用户)
 */
export type UserInfo = {
  accessKey: string;
  accessSecret: string;
  accessToken: string;
  address: string[];
  affiliation: string;
  auth0: string;
  avatar: string;
  avatarType: string;
  casdoor: string;
  countryCode: string;
  createdIp: string;
  createdTime: string;
  custom: string;
  displayName: string;
  email: string;
  firstName: string;
  gender: string;
  groups: string[];
  id: string;
  isAdmin: boolean;
  isDefaultAvatar: boolean;
  isDeleted: boolean;
  isForbidden: boolean;
  isOnline: boolean;
  language: string;
  lastName: string;
  lastSigninIp: string;
  lastSigninTime: string;
  lastSigninWrongTime: string;
  name: string;
  owner: string;
  password: string;
  passwordSalt: string;
  passwordType: string;
  permanentAvatar: string;
  permissions: string[];
  properties: { [key: string]: any };
  ranking: number;
  recoveryCodes: null;
  region: string;
  roles: string[];
  signinWrongTimes: number;
  signupApplication: string;
  strava: string;
  stripe: string;
  sub: string;
  tag: string;
  title: string;
  tokenType: string;
  TokenType: string;
  type: string;
  updatedTime: string;
};